package com.dayatang.android.Task;

import com.dayatang.android.Activity.R;
import com.dayatang.android.Util.HttpUtil;

import android.app.ProgressDialog;
import android.content.Context;
import android.os.AsyncTask;

public class NavigationTask extends AsyncTask<String, Integer, String> {

	private ProgressDialog pd;
	private Context context;
	
	public NavigationTask(Context context) {
		this.context = context;
		pd = ProgressDialog.show(context, "", context.getString(R.string.map_area_search), true, true);
	}
	
	protected String doInBackground(String... params) {
		return HttpUtil.httpclient(params[0],context);
	}
	
	protected void onPostExecute(String result) {
		pd.dismiss();
	}

}
